<include file='__PUBLIC__/frame.html'/>
		<!-- start right -->
<div class="right">
	<div class="now">
		<div class="now_l"></div>
		<div class="now_m">
			<span class="fl">商品列表</span>
			<span class="fr fabu"><a href="{|U:'Good/add'}">新增商品</a></span>
		</div>
		<div class="now_r"></div>
		<div class="clear"></div>
	</div>
	<div class="search">
		<div class="fr searbox">
			<form method="get">
				<input type="hidden" name="mod" value="article" />
				商品名称：<input type="text" name="name" value="" class="inputtext inputtext_200" />
				<select name="class_id" class="inputselect">
				<option value="" href="?mod=article">全部商品</option>
								<option value="1" href="?mod=article&class_id=1" >网站公告</option>
								<option value="2" href="?mod=article&class_id=2" >公司动态</option>
								<option value="3" href="?mod=article&class_id=3" >相关知识</option>
								<option value="4" href="?mod=article&class_id=4" >商城新闻</option>
								</select>
				<input type="submit" value="搜索" class="input2" />
			</form>
		</div>
		<div class="clear"></div>
	</div>
	<form method="post" id="form">
	<table width="100%" border="0" cellspacing="0" cellpadding="0" class="list">
	<tr>
		<td class="bgtt" width="80">货品ID</td>
		<foreach from='$tpid' key='$k' value='$v'>
		<td class="bgtt" width="120" >{$v.tpname}</td>
		</foreach>
		<td class="bgtt" width="150">库存</td>
		<td class="bgtt" width="150">货号</td>
		<td class="bgtt" >操作</td>
	</tr>
	<foreach from='$data' key='$key' value='$v'>
	<tr>
		<td >{$v.glid}</td>
		<foreach from='$v["apid"]' key='$k' value='$value'>
		<td >{$value}</td>
		</foreach>
		<td >{$v.glinventory}</td>
		<td >{$v.glno}</td>
		<td>
			<a style="float: left; margin-left: 80px;" href="{|U:'Glist/edit',array('glid'=>$v['glid'])}" class="admin_edit mar3">修改</a>
			<a style="float: left; margin-left: 0px;"href="{|U:'Glist/del',array('glid'=>$v['glid'])}" class="admin_del" onclick="return confirm('确认删除吗')">删除</a>
			
		</td>
	</tr>
	</foreach>
	<tr>
		<td><input class="btn btn-info" type="submit" value="添加规格" /></td>
		<foreach from='$add_spec' key='$k' value='$v'>
			
		<td><select name="apid[]" id="">
			<foreach from='$v' key='$key' value='$value'>
				<option  value="{$value.gpid}">{$value.gpvalue}</option>
			</foreach>
		</select></td>
		</foreach>
		<td><input name="glinventory" type="text" /></td>
		<td><input name="glno" type="text" /></td>
	</tr>
	</table>
	</form>
</div>

	
		<div class="clear"></div>
	</div>
	<div class="foot">Copyright <span class="num">&copy;</span> 2014-2017 <a target="_blank" href="#"></a> 版权所有</div>
</div>


		<!-- end right -->

</body>
</html>	
